<!DOCTYPE html>
<html>
  <head>
    <meta charset="UTF-8" />
    <style>
      /* 填写样式 */
    </style>
  </head>

  <body>
    <!-- 填写标签 -->
    <script type="text/javascript">
      // 填写JavaScript
      /**
       * 给定二进制字符串，将其换算成对应的十进制数字
       * '11000000'
       * 192
       */
      function base10(str) {
        return parseInt(str, 2)
      }
      console.log(base10('11000000'))
    </script>
  </body>
</html>
